<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="WHIT">
<span class='line'>  2</span> </span><span class="COMM">/**
<span class='line'>  3</span>  * @fileoverview Simple column chart implementation.
<span class='line'>  4</span>  * @version 1.0.1
<span class='line'>  5</span>  * @link http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
<span class='line'>  6</span>  * @link https://developers.google.com/closure/compiler/docs/js-for-compiler
<span class='line'>  7</span>  */</span><span class="WHIT">
<span class='line'>  8</span> 
<span class='line'>  9</span> 
<span class='line'> 10</span> 
<span class='line'> 11</span> </span><span class="COMM">/**
<span class='line'> 12</span>  * ColumnChart constructor.
<span class='line'> 13</span>  * @param {string|Element} container The HTML container.
<span class='line'> 14</span>  * @constructor
<span class='line'> 15</span>  * @extends {charts.BarChart} charts.BarChart
<span class='line'> 16</span>  * @example
<span class='line'> 17</span>  * &lt;b>var&lt;/b> chart = &lt;b>new&lt;/b> charts.ColumnChart('container_id');
<span class='line'> 18</span>  * chart.draw([['Year', 'Sales', 'Expenses', 'Profit'],
<span class='line'> 19</span>  *             [2011, 80, 30, 45], [2012, 65, 130, 90], [2013, 45, 100, 60]]);
<span class='line'> 20</span>  *
<span class='line'> 21</span>  * &lt;div id="chart-container"
<span class='line'> 22</span>  *      style="width: 560px; height: 200px; margin: 0 0 20px 20px;">&lt;/div>
<span class='line'> 23</span>  * &lt;script src="../../bin/jscb.js">&lt;/script>
<span class='line'> 24</span>  * &lt;script>
<span class='line'> 25</span>  *   var chart = new charts.ColumnChart('chart-container');
<span class='line'> 26</span>  *   chart.draw([['Year', 'Sales', 'Expenses', 'Profit'],
<span class='line'> 27</span>  *               [2011, 80, 30, 45], [2012, 65, 130, 90], [2013, 45, 100, 60]]);
<span class='line'> 28</span>  * &lt;/script>
<span class='line'> 29</span>  */</span><span class="WHIT">
<span class='line'> 30</span> </span><span class="NAME">charts.ColumnChart</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">container</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 31</span> </span><span class="WHIT">  </span><span class="NAME">charts.BarChart.apply</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">arguments</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 32</span> 
<span class='line'> 33</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 34</span>    * @private
<span class='line'> 35</span>    */</span><span class="WHIT">
<span class='line'> 36</span> </span><span class="WHIT">  </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="NAME">init_</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 37</span> </span><span class="WHIT">    </span><span class="NAME">self_.defaults</span><span class="PUNC">[</span><span class="STRN">'direction'</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">charts.Grid.DIRECTION.BOTTOM_TO_TOP</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 38</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 39</span> 
<span class='line'> 40</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 41</span>    * The reference to current class instance. Used in private methods.
<span class='line'> 42</span>    * @type {!charts.ColumnChart}
<span class='line'> 43</span>    * @private
<span class='line'> 44</span>    */</span><span class="WHIT">
<span class='line'> 45</span> </span><span class="WHIT">  </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">self_</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 46</span> 
<span class='line'> 47</span> </span><span class="WHIT">  </span><span class="NAME">init_</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 48</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 49</span> 
<span class='line'> 50</span> </span><span class="COMM">// Export for closure compiler.</span><span class="WHIT">
<span class='line'> 51</span> </span><span class="NAME">charts</span><span class="PUNC">[</span><span class="STRN">'ColumnChart'</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">charts.ColumnChart</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 52</span> </span></pre></body></html>